//Collatz conjecture(考拉兹猜想)
#include <stdio.h>
#include <stdlib.h>
int main()
{
	unsigned int aNumber;
	for (int i = 0; i <= 4; i++)
	{
		printf("Please input a positive integer(%d time):\n",(i+1));
		scanf("%d", &aNumber);
		printf("%d ", aNumber);
		while (aNumber > 1)
		{

			if (aNumber % 2 == 0)
				aNumber /= 2;
			else
				aNumber = aNumber * 3 + 1;
			printf("%d ", aNumber);
		}
        printf("\n\n");
	}
	return 0;
}
